TotalPoll\Poll\Model D

Total Complexity 222
Dependencies 19
Dependents 4
Total lines 2,137
Lines of code 901
Logical lines of code 468
Comment lines 908
Methods 112
Properties 24

Methods 112

Method Rating Maintainability Complexity Lines of code
__construct()
C
26
23 169
applyPollExpressions()
A
48 9 31
getSettings()
S
61 6 11
getQuestions()
S
61 5 11
addChoice()
S
50 3 29
getChoicesWhere()
S
60 4 13
getQuestionsWhere()
S
60 4 13
removeQuestion()
S
60 4 13
getChoiceVotesPercentage()
S
57 3 16
setChoice()
S
58 3 15
getTimeLeftToStart()
S
64 4 9
getTimeLeftToEnd()
S
64 4 9
getUrl()
S
65 4 8
setQuestion()
S
60 3 14
isAcceptingVotes()
S
60 3 14
removeChoice()
S
61 3 12
hasVoted()
S
64 3 11
getViewVariables()
S
52 2 26
getShareAttributes()
S
55 2 19
toArray()
S
58 2 16
getReceivedChoices()
S
63 3 10
getHeader()
S
65 3 9
getReceivedQuestions()
S
63 3 10
orderByVotes()
S
65 3 9
orderByPosition()
S
65 3 9
getFooter()
S
65 3 9
getFields()
S
58 2 15
save()
S
61 2 13
getSeoAttributes()
S
60 2 13
getChoiceVotesFormatted()
S
55 1 21
getQuestion()
S
78 2 3
getErrorMessage()
S
79 2 3
isResultsHidden()
S
71 2 5
getForm()
S
70 2 6
incrementChoiceVotes()
S
63 2 10
isMigrated()
S
77 2 3
restorePollExpressions()
S
73 2 5
render()
S
65 2 9
offsetGet()
S
78 2 3
getHiddenResultsContent()
S
69 2 7
getQuestionChoices()
S
78 2 3
getQuestionChoicesCount()
S
77 2 3
getThumbnail()
S
70 2 5
getChoiceVotesWithLabel()
S
66 2 7
getChoiceVotes()
S
70 2 6
getQuestionVotes()
S
78 2 3
getChoicesRows()
S
71 2 5
getChoices()
S
68 2 7
getQuestionUidByChoiceUid()
S
78 2 3
getChoiceVotesNumber()
S
67 2 7
getChoice()
S
77 2 3
getAjaxUrl()
S
59 1 14
jsonSerialize()
S
81 1 3
getUid()
S
81 1 3
isThankYouScreen()
S
80 1 3
isResultsScreen()
S
80 1 3
isVoteScreen()
S
80 1 3
getSettingsItem()
S
66 1 9
isPaginated()
S
80 1 3
isPasswordProtected()
S
80 1 3
offsetSet()
S
91 1 2
offsetExists()
S
80 1 3
getTitle()
S
82 1 3
offsetUnset()
S
91 1 2
isWelcomeScreen()
S
80 1 3
orderByLabel()
S
82 1 3
orderByRandom()
S
82 1 3
isScreen()
S
80 1 3
addQuestion()
S
91 1 2
getPollPost()
S
82 1 3
getId()
S
81 1 3
hasBelowResultsContent()
S
78 1 3
refreshUid()
S
76 1 4
setSettings()
S
81 1 3
getTotalVotes()
S
82 1 3
hasAboveResultsContent()
S
78 1 3
getColumnWidth()
S
75 1 4
getWelcomeContent()
S
80 1 3
getScreen()
S
82 1 3
getPrefix()
S
77 1 3
getRestrictions()
S
82 1 3
getLimitations()
S
82 1 3
getError()
S
82 1 3
getChoiceVotesPercentageWithLabel()
S
79 1 3
getAboveVoteContent()
S
80 1 3
getQuestionVotesWithLabel()
S
74 1 4
getChoicesCount()
S
80 1 3
getQuestionsCount()
S
80 1 3
getQuestionsForResults()
S
70 1 7
getQuestionsForVote()
S
70 1 7
getPermalink()
S
80 1 3
getTotalVotesWithLabel()
S
71 1 6
getThankyouContent()
S
80 1 3
getBelowVoteContent()
S
80 1 3
hasBelowVoteContent()
S
78 1 3
getTotalVotesNumber()
S
80 1 3
hasAboveVoteContent()
S
78 1 3
hasThankyouContent()
S
78 1 3
hasWelcomeContent()
S
78 1 3
hasError()
S
80 1 3
setError()
S
81 1 3
setForm()
S
80 1 3
setAction()
S
79 1 3
getAboveResultsContent()
S
80 1 3
setScreen()
S
76 1 4
setSettingsItem()
S
79 1 3
getAdminExportAsLink()
S
66 1 9
getAdminEditLink()
S
78 1 3
getPresetUid()
S
79 1 3
getTemplateId()
S
79 1 3
getAction()
S
82 1 3
getBelowResultsContent()
S
80 1 3